<!--server 、factory、provider本质上都是provider

-->
<!DOCTYPE html>
<html lang="en" ng-app="MyServiceApp">
<head>
    
    <meta http-equiv="content-type" content="
    text/html;charset=utf-8">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <script src="angular.js"></script>
    <script src="MyService1.js"> </script>
    <title>Document</title>
</head>
<body>
    <div ng-controller="ServiceController">
<label for="">用户名</label>
<input type="text" ng-model="username" placeholder="请输入用户名">
<pre ng-show="username">{{users}}</pre>


    </div>
</body>
</html>